package com.wayne.gateway.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "wayne.security")
public class SecurityProperties {
    /**
     * 网关白名单配置
     */
    private String[] whites;
    /**
     * cookie domain
     */
    private String cookieDomain;
    /**
     * cookie 失效时间
     */
    private Integer cookieTimeoutSeconds;
    private Boolean enabled;
    /**
     * 登录成功跳转
     */
    private String loginSuccess;
    /**
     * 退出成功跳转
     */
    private String logoutSuccess;
}
